/*
 * @Author: yangzonglong
 * @Date: 2021-07-20 09:56:42
 * @version: v1.0.0
 * @Descripttion: Printview data
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-08-17 15:02:11
 * @Auditor:
 */
import PrintInput from './components/PrintInput.jsx';
import PrintInputNumber from './components/PrintInputNumber.jsx';
import PrintOrderNumber from './components/PrintOrderNumber.jsx';
import PrintText from './components/PrintText.jsx';
import PrintDatePicker from './components/PrintDatePicker.jsx';
import PrintTextArea from './components/PrintTextarea.jsx';
import PrintRadio from './components/PrintRadio.jsx';
import PrintUpload from './components/PrintUpload.jsx';
import PrintCheckbox from './components/PrintCheckbox.jsx';
import PrintDividLine from './components/PrintDividLine.jsx';
import PrintAdjustSpacing from './components/PrintAdjustSpacing.jsx';
import PrintSelect from './components/PrintSelect.jsx';
import PrintTable from './components/table/PrintTable.jsx';
import PrintDataLinkLov from './components/PrintDataLinkLov.jsx';
import PrintDataLinkComBox from './components/PrintDataLinkComBox.jsx';
import PrintCode from './components/PrintCode.jsx';
import PrintImg from './components/PrintImg.jsx';
import ScriptChange from './components/scriptChange/ScriptChange.jsx';
import ScriptLoad from './components/scriptLoad/ScriptLoad.jsx';
import ScriptSubmit from './components/scriptSubmit/ScriptSubmit.jsx';
import PrintTemplate from './components/PrintTemplate.jsx';
import PrintRow from './components/PrintRow';
import PrintCol from './components/PrintCol';
import { ControlType } from './config';

export const printControlMap = {
  [ControlType.INPUT]: PrintInput,
  [ControlType.INPUT_NUMBER]: PrintInputNumber,
  [ControlType.DATE_PICKER]: PrintDatePicker,
  [ControlType.TEXT]: PrintText,
  [ControlType.TEXT_AREA]: PrintTextArea,
  [ControlType.RADIO]: PrintRadio,
  [ControlType.CHECKBOX]: PrintCheckbox,
  [ControlType.DIVIDLINE]: PrintDividLine,
  [ControlType.ADJUSTSPACING]: PrintAdjustSpacing,
  [ControlType.SELECT]: PrintSelect,
  [ControlType.TABLE]: PrintTable,
  [ControlType.DATALINK]: PrintDataLinkLov,
  [ControlType.DATALINKCOMBOX]: PrintDataLinkComBox,
  [ControlType.CODE]: PrintCode,
  [ControlType.IMG]: PrintImg,
  [ControlType.ORDER_NUMBER]: PrintOrderNumber,
  [ControlType.SCRIPT_CHANGE]: ScriptChange,
  [ControlType.SCRIPT_LOAD]: ScriptLoad,
  [ControlType.SCRIPT_SUBMIT]: ScriptSubmit,
  [ControlType.TEMPLATE]: PrintTemplate,
  [ControlType.UPLOAD]: PrintUpload,
  [ControlType.ROW]: PrintRow,
  [ControlType.COL]: PrintCol,
  [ControlType.COLLAPSE]: PrintRow
};
